<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 *公告管理
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
		$return=array();
		$id = intval($_RQ['id']);
		$opus=pdo_get('jy_vote_opus',array('uniacid'=>$_SESSION['uniacid'],'id'=>$id));
		$user = pdo_get('jy_vote_user',array('uniacid'=>$_SESSION['uniacid'],'mid'=>$opus['mid']));
		$updata['nickname']=$user['nickname'];
		$updata['avatar']=$user['avatar'];
		$updata['fee']='红包总额：￥'.$opus['money'];
		$updata['nums']='浏览:'.$opus['look'].',点赞:'.$opus['like'].',红包数:'.$opus['red_num'];
		$item=pdo_get('jy_poster_poster',array('isdefault'=>1,'uniacid'=>$_SESSION['uniacid'],'plugin'=>'jy_vote'));
		$data=json_decode($item['data'],true);
		$poster['id']=$item['id'].'_'.$id;
		$poster['data']=$data['data'];
		$poster['bg']=$data['image'];
		$url=custom_url('jy_vote/o_detail//id='.$id,true);
		$qr=cfc('tools')->createqrcode($url,150,true);
		$img=cfc('jy_poster')->createPoster($poster,$qr,$updata,true,'','jy_vote');
		$return['poster']=$img;
		set_html('title','我的海报');
		exi($return);
}
